package com.smile.weather2.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 城市信息列表类
 * Created by smile on 2016/8/24.
 */
public class CityInfo {

    private List<CityInfoBean> city_info;

    public CityInfo() {
        this.city_info = new ArrayList<>();
    }

    public List<CityInfoBean> getCity_info() {
        return city_info;
    }

    public void setCity_info(List<CityInfoBean> city_info) {
        this.city_info.clear();
        this.city_info.addAll(city_info);
    }

    /**
     * 城市信息类
     *
     * city : 城市(景点)
     * cnty : 国家
     * id : 城市(景点)id
     * lat : 11.26
     * lon : 114.20
     * prov : 省份
     */
    public static class CityInfoBean {
        private String city;
        private String cnty;
        private String id;
        private String lat;
        private String lon;
        private String prov;

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getCnty() {
            return cnty;
        }

        public void setCnty(String cnty) {
            this.cnty = cnty;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getLon() {
            return lon;
        }

        public void setLon(String lon) {
            this.lon = lon;
        }

        public String getProv() {
            return prov;
        }

        public void setProv(String prov) {
            this.prov = prov;
        }

        @Override
        public String toString() {
            return "CityInfoBean{" +
                    "city='" + city + '\'' +
                    ", cnty='" + cnty + '\'' +
                    ", id='" + id + '\'' +
                    ", lat='" + lat + '\'' +
                    ", lon='" + lon + '\'' +
                    ", prov='" + prov + '\'' +
                    '}';
        }
    }
}
